/*
 * Written by Farzon Lotfi
 * HW  5
 * MyHashEntry.java
 * 
 * */

/**
 * @author Farzon Lotfi 
 * @version 1.0
 * class that acts as what is stored in each link list node
 * thats in the bucket array
 */
public class MyHashEntry<K, V> implements IEntry<K, V> {

	private K key;
	private V value;
	
	/**
	 * constructor that allows the adding in of a key and value pair into the
	 * node 
	 * @param K key - the user defined key 
	 * @param V value - the user defined value
	 */
	public MyHashEntry(K key, V value) {
		this.key = key;
		this.value = value;
	}
	
	/**
	 * Returns the key this hash entry represents.
	 * @return the key
	 */
	public K getKey() {
		return key;
	}


	/**
	 * Returns the value this hash entry represents.
	 * @return the value
	 */
	public V getValue() {
		return value;
	}
	
	
}